package com.base.task.entity;

import lombok.Data;

import java.time.LocalDateTime;

/**
 * @ Author     ：山水之间-wxs
 * @ Description：批次实体
 * @ Date       ：Created in 18:36 2021/11/3
 * @ Modified By：
 * @ Version    ：$
 */
@Data
public class BatchResult extends BatchParam {

    private Integer totalCount;
    private int successTotalCount;
    private LocalDateTime bgnTime;
    private LocalDateTime endTime;
    private long totalRunTime;

    public void setSuccessCount(int count) {
        successTotalCount += count;
    }

    public static BatchResult builder(){
        return new BatchResult();
    }

}
